package heven.holt.wan.android.api

import heven.holt.wan.android.model.*
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

/**
 * WanAndroid用户Api
 */
interface ApiWanUserServer {
    @POST("user/login")
    suspend fun login(
        @Query("username") username: String,
        @Query("password") password: String
    ): BaseModel<UserModel>

    @GET("lg/coin/userinfo/json")
    suspend fun getUserCoinInfo(): BaseModel<UserCoinInfo>

    @GET("lg/coin/list/{page}/json")
    suspend fun getUserCoinRecordList(@Path("page") page: Int): BaseModel<BasePageModel<CoinRecordModel>>
}